package com.dianxin.smartpark.manager.attendance.impl;

import com.chinatelecom.response.common.CommonResponseBody;
import com.dianxin.smartpark.dao.qo.attendance.SmartParkAttendanceRecordQO;
import com.dianxin.smartpark.manager.attendance.ISmartParkAttendanceRecordService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @program: smart-park
 * @description: 考勤记录
 * @author: chenyong
 * @create: 2021-08-03 15:55
 */
@Service
public class ISmartParkAttendanceRecordServiceImpl implements ISmartParkAttendanceRecordService {
    private final static Logger logger = LoggerFactory.getLogger(ISmartParkAttendanceRecordServiceImpl.class);

    @Resource
    private ISmartParkAttendanceRecordService smartParkAttendanceRecordService;


    /**
     *
     * @Description:  保存打卡记录
     * @Author: ChenYong
     * @Date: 2021/8/3 0003
     * @param smartParkAttendanceRecordQO:
     * @Return: CommonResponseBody
     */
    @Override
    public CommonResponseBody saveAttendanceRecord(SmartParkAttendanceRecordQO smartParkAttendanceRecordQO) {
        return smartParkAttendanceRecordService.saveAttendanceRecord(smartParkAttendanceRecordQO);
    }


    /**
     *
     * @Description:  保存异常打卡记录
     * @Author: ChenYong
     * @Date: 2021/8/3 0003
     * @param smartParkAttendanceRecordQO:
     * @Return: CommonResponseBody
     */
    @Override
    public CommonResponseBody saveAbnormalAttendanceRecord(SmartParkAttendanceRecordQO smartParkAttendanceRecordQO) {
        return smartParkAttendanceRecordService.saveAbnormalAttendanceRecord(smartParkAttendanceRecordQO);
    }

}
